#
# Be sure to run `pod lib lint YHView.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'YHView'
  s.version          = '0.1.0'
  s.summary          = 'A short description of YHView.'
  
  # This description is used to generate tags and improve search results.
  #   * Think: What does it do? Why did you write it? What is the focus?
  #   * Try to keep it short, snappy and to the point.
  #   * Write the description between the DESC delimiters below.
  #   * Finally, don't worry about the indent, CocoaPods strips it!
  
  s.description      = <<-DESC
  TODO: Add long description of the pod here.
  DESC
  
  s.homepage         = 'https://gitee.com/lnn/YHView'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '林宁宁' => 'linningning@98du.com' }
  s.source           = { :git => 'https://gitee.com/lnn/YHView.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  s.ios.deployment_target = '9.0'
  
  s.subspec 'InputView' do |cs|
    cs.source_files = 'YHView/Classes/InputView/**/*'
    
    cs.dependency 'YHCategory/UIKit/Input'
    cs.dependency 'YHCategory/UIKit/View'
  end
  
  s.subspec 'CheckBox' do |cs|
    cs.source_files = 'YHView/Classes/CheckBox/**/*'
    
    cs.dependency 'YHHUD'
    cs.dependency 'YHCategory/UIKit/View'
    cs.dependency 'YHCategory/UIKit/Control'
  end

  s.subspec 'PopView' do |cs|
    cs.source_files = 'YHView/Classes/PopView/**/*'
    
    cs.dependency 'YHCategory/UIKit/Control'
    cs.dependency 'YHCategory/UIKit/Input'
    cs.dependency 'YHCategory/UIKit/View'
  end
  
  
  s.subspec 'PickerView' do |cs|
    cs.source_files = 'YHView/Classes/PickerView/**/*'
    
    cs.dependency 'YHView/PopView'
    cs.dependency 'YHCategory/UIKit/Control'
    cs.dependency 'YHCategory/UIKit/View'
  end
  
  s.subspec 'PreView' do |cs|
    cs.source_files = 'YHView/Classes/PreView/**/*'
    
    cs.dependency 'SDWebImage'
    cs.dependency 'YHView/PopView'
    cs.dependency 'YHCategory/UIKit/Image'
    cs.dependency 'YHCategory/UIKit/WebImage'
  end


  s.dependency 'YHConstant'
  s.dependency 'YHBase'
  s.dependency 'YHApp/AppInfo'
  
end
